home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Games / Hexagonal CA / HexCA.h / GridCopyPr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-27  |  744 b   |  32 lines  |  [TEXT/CWIE]

  1. /*
  2. "GridCopyPr.h"    by Alexander M Kasprzyk
  3.             ©1996
  4.  
  5. This file is part of my CA toolkit. The GridCopy function
  6. allows very rapid copying from one location in memory
  7. to another, and was designed for use in Cellular Automata
  8. programs.
  9.  
  10. Please feel free to contact me at:
  11. alex@kasprzyk.demon.co.uk
  12. */
  13.  
  14. #ifndef _GridCopyPr_
  15. #define _GridCopyPr_
  16.  
  17. typedef struct
  18. {
  19. #ifdef powerc
  20.     long            ndouble;            // the number of doubles
  21.     Boolean        nlong;            // do we have a long?
  22. #else
  23.     long            nlong;            // the number of longs
  24. #endif
  25.     Boolean        nshort,            // do we have a short?
  26.                 nchar;            // do we have a char?
  27. } RBlockData, *RBlockDataPtr;
  28.  
  29. void    SetRBlockData        ( Size, RBlockDataPtr );
  30. void    RBlockMove        ( register Ptr, register Ptr, register RBlockDataPtr );
  31.  
  32. #endif